#ifndef ENTIER_H
#define ENTIER_H

#include "constante.h"
#include "noncomplexnumber.h"
#include <string>
#include <sstream>

class Integer : public NonComplexNumber
{
        int val;
public:
    Integer(int);

    Constante* operator+(const Constante&)const;
    Constante* operator*(const Constante&)const;
    Constante* operator-(const Constante&)const;
    Constante* operator/(const Constante&)const;
    Constante* operator-()const;


    Constante* operator%(const Constante&)const;
    Constante* operator!()const;

    std::string print()const {
        std::stringstream ss;
        ss << val;
        return ss.str();
    }

    int getVal()const{return val;}
};

#endif // ENTIER_H
